import request from '@/utils/request'

// 查询项目标签配置列表
export function listDealTagsConfigure(query) {
  return request({
    url: '/tags/dealTagsConfigure/list',
    method: 'get',
    params: query
  })
}

// 查询项目标签配置详细
export function getDealTagsConfigure(id) {
  return request({
    url: '/tags/dealTagsConfigure/' + id,
    method: 'get'
  })
}

// 保存项目标签配置
export function saveDealTagsConfigure(data) {
  return request({
    url: '/tags/dealTagsConfigure/save',
    method: 'post',
    data: data
  })
}

// 删除项目标签配置
export function delDealTagsConfigure(id) {
  return request({
    url: '/tags/dealTagsConfigure/' + id,
    method: 'delete'
  })
}

// 导出项目标签配置
export function exportDealTagsConfigure(query) {
  return request({
    url: '/tags/dealTagsConfigure/export',
    method: 'get',
    params: query
  })
}

// 修改状态
export function updateStatus(id, status) {
  return request({
    url: '/tags/dealTagsConfigure/updateStatus/' + id + '/' + status,
    method: 'post'
  })
}

// 获取标签配置和标签信息
export function findConfigureAndTagsInfo(type, dealId) {
  return request({
    url: '/tags/dealTagsConfigure/findConfigureAndTagsInfo/' + type + '/' + dealId,
    method: 'get'
  })
}
